import request from "@/utils/request";

export function dictionaryQueryListByName(data) {
  return request({
    url: `/dictionary/queryListByName`,
    method: "post",
    data
  });
}

// 根据name模糊查询客户
export function customerQueryLike(params) {
  return request({
    url: `/customer/queryLike/${params.name}`,
    method: "get"
  });
}

// 根据Name模糊查询产品信息
export function modelQueryLikeName(data) {
  return request({
    url: `/model/queryLikeName`,
    method: "post",
    data
  });
}

// 根据工序表mes_process中的code值查询其下的所有主线体
export function processPondQueryInProcess(data) {
  return request({
    url: `/processPond/queryInProcess`,
    method: "post",
    data
  });
}

// 根据model模糊查询产品信息
export function modelQueryLike(params) {
  return request({
    url: `/model/queryLike/${params.name}`,
    method: "get"
  });
}

// 根据主线体的id，查询所有子线体
export function processPondQueryList(params) {
  return request({
    url: `/processPond/queryByFatherId/${params.fatherId}`,
    method: "get"
  });
}

// 获取班别时间
export function settingsQueryDateTime() {
  return request({
    url: `/settings/queryDateTime`,
    method: "get"
  });
}

// 清洗后全检报告
export function reportQueryListReportInspectForm(data) {
  return request({
    url: `/report/queryListReportInspectForm`,
    method: "post",
    data
  });
}
